package vsqlbuilder.logic;

import java.util.ArrayList;
import java.util.List;

public class Schema {
	public List<Table> tables;
	private String name;

	public Schema(String schemaName) {
		this.tables = new ArrayList<Table>();
		this.name = schemaName;
	}

	public String getName() {
		return name;
	}

	public void addTable(Table newTable) {
		this.tables.add(newTable);
	}

	// toString method returns the string to be displayed for a table node in a
	// JTree
	public String toString() {
		return this.name;
	}
}
